package modelLayer;

import java.util.ArrayList;

public class Order {
    private int id;
    private String status;
    private String date;
    private double totalPrice;
    private Customer cust;
    private Employee emp;
    private OrderLine ol;
    private ArrayList<OrderLine> orderLines;
    
    public Order(Customer cust, Employee emp, ArrayList<OrderLine> orderLines, String date, double total) {
        this.cust = cust;
        this.emp = emp;
        this.date = date;
        this.totalPrice = total;
        this.status = "Order received";
        this.orderLines = orderLines;
    }
    
    public int getId() {
        return id;
    }
    
    protected void setId(int id) {
        this.id = id;
    }
    
    public void setStatus(String status){
        this.status = status;
    }
    
    public String getStatus() {
        return status;
    }
    
    public void setDate(String date){
        this.date = date;
    }
    
    public String getDate(){
        return date;
    }
    
    public void setTotalPrice(double totalPrice){
        this.totalPrice = totalPrice;
    }
    
    public double getTotalPrice(){
        return totalPrice;
    }
    
    public Customer getCustomer() {
        return cust;
    }
    
    public Employee getEmployee() {
        return emp;
    }
    
    public ArrayList<OrderLine> getOrderLines() {
        return orderLines;
    }
}

